package com.slfx.data.permission.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Author: slfx
 * @Date: 2023-01-02
 * @Description:
 **/
@Data
@TableName("data_auth")
@ApiModel(value = "DataAuth对象", description = "数据权限定义表")
public class DataAuth implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("状态,0可用,1不可用")
    private Integer deleteFlag;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建人员")
    private String createUserCode;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("修改人员")
    private String updateUserCode;

    @ApiModelProperty("数据版本")
    private Integer version;

    @ApiModelProperty("表名")
    private String tableName;

    @ApiModelProperty("是否启用,0标识否，1标识是")
    private Integer enableFlag;

    @ApiModelProperty("字段名")
    private String columnCode;

    @ApiModelProperty("字段中文名")
    private String columnName;

    @ApiModelProperty("值名")
    private String dataName;

    @ApiModelProperty("数据编码	唯一键")
    private String dataCode;

    @ApiModelProperty("租户编码")
    private String tenantCode;

    @ApiModelProperty("接口参数")
    private String requestParams;

    @ApiModelProperty("接口url")
    private String url;

    @ApiModelProperty("请求类型")
    private String requestType;

    @ApiModelProperty("父记录编码字段，用于生成树")
    private String treeParentCode;

    @ApiModelProperty("父记录根节点初始值")
    private String treeRootValue;

    @ApiModelProperty("数据记录的记录编码字段，用于生成树")
    private String treeCode;

    @ApiModelProperty("生成树的深度")
    private Integer treeDepth;

    @ApiModelProperty("0–分页列表数据	, 1–按公司结构返回的树形结构数据")
    private Integer type;

    @ApiModelProperty("按指定字段分组，返回2级树结构数据")
    private String groupby;


}
